package org.ch03.job.test03;

/**
 * @author XCH
 * @date 2025 - 03 - 25
 */
public class MainTest {
    public static void main(String[] args) {
        MainTest mainTest = new MainTest();

        // 创建一个温顺的狗
        Dog tameDog = new Dog(true);
        People<Dog> peopleDog = new People<>();
        peopleDog.setPet(tameDog);
        peopleDog.shopping();
        System.out.println("-------------------");
        // 创建一个不温顺的老虎
        Tiger wildTiger = new Tiger(false);
        People<Tiger> peopleTiger = new People<>();
        peopleTiger.setPet(wildTiger);
        peopleTiger.shopping();


    }
}
